import Vue from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'

import '@/plugin/src/styles/index.scss'

import * as filters from '@/plugin/src/filters' // global filters
import Base64 from '@/plugin/src/utils/base64.js'

import Storage from 'vue-ls'
import Element from 'element-ui'
import LiloComponents from './plugin/src/index.js'

Vue.use(Storage, {
	namespace: 'vuejs__', // key prefix
	name: 'ls', // name variable Vue.[ls] or this.[$ls],
	storage: 'session', // storage name session, local, memory
})
Vue.use(Element, {})
Vue.use(LiloComponents, {})

// register global utility filters
Object.keys(filters).forEach(key => {
	Vue.filter(key, filters[key])
})

Vue.config.productionTip = false
Vue.prototype.$b64 = new Base64()

new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')
